import 'dart:ui';

import 'package:decimal/decimal.dart';

extension NumExtension on num {
  Decimal get accuracy => Decimal.parse(toString());

  TextStyle get ts => TextStyle(fontSize: toDouble());
}

extension DecimalExtension on Decimal {
  int toInt() => toBigInt().toInt();
}
